import Vue from "vue";
import Router from "vue-router";
import TestMap from '../view/testmap.vue';
import Editor from '../view/editor/index.vue';
import KindEdit from '../view/editor/kindedit.vue';
import VueEditor from '../view/editor/vueEditor.vue';
import QillWrapDemo from '../view/editor/QillWrapDemo.vue';
import Vant from '../view/vant.vue';
import PullRefresh from '../view/vant/PullRefresh.vue';
import Swipe from '../view/vant/Swipe.vue';
import Pick from '../view/vant/pick.vue';
import Picker from '../view/vant/picker.vue';
import BstScroller from '../view/vant/bstScroller.vue';
import VuexDemo from '../view/vuexDemo.vue';
import PdfView from '../view/pdfView.vue';
import VueDragCom from '../view/VueDragCom.vue';
import Echarts from '../view/echartsDemo.vue';
import Flights from '../view/echartsDemo/Flights.vue';
import LineDraggable from '../view/echartsDemo/LineDraggable.vue';
import GlobeAtmosphere from '../view/echartsDemo/GlobeAtmosphere.vue';
import WoodCity from '../view/echartsDemo/WoodCity.vue';
import Trajectory from '../view/echartsDemo/Trajectory.vue';
import SmoothLineChart from '../view/echartsDemo/SmoothLineChart.vue';
import BasicBar from '../view/echartsDemo/BasicBar.vue';
import Ellipse from '../view/echartsDemo/Ellipse.vue';
import Liucheng from '../view/liucheng/index.vue';
import VueSuperDefault from '../view/liucheng/vueSuperDefault.vue';
import VueSuperAdvanced from '../view/liucheng/vueSuperAdvanced.vue';
import VueTaskNodeDemo from '../view/liucheng/vueTaskNodeDemo.vue';
import ImageDemo from '../view/imageDemo.vue';
import XLSXDemo from '../view/XLSXDemo.vue';
import pizhuDemo from '../view/pizhuDemo.vue';
import vchartDemo from '../view/vchartDemo/index.vue';
import vlineDemo from '../view/vchartDemo/vlineDemo.vue';
import NSCEearth from '../view/NSCEarthDemo.vue';

Vue.use(Router);

const routes = [{
    path: '/map',
    component: TestMap
  },
  {
    path: '/editor',
    component: Editor,
    children: [{
      path: 'kindedit',
      component: KindEdit
    },{
      path: 'vueEditor',
      component: VueEditor
    },{
      path: 'qillWrapDemo',
      component: QillWrapDemo
    }]
  },
  {
    path: '/vuexDemo',
    component: VuexDemo
  },
  {
    path: '/pdfView',
    component: PdfView
  },
  {
    path: '/vueDragCom',
    component: VueDragCom
  },
  {
    path: '/imageDemo',
    component: ImageDemo
  },
  {
    path: '/XLSXDemo',
    component: XLSXDemo
  },
  {
    path: '/pizhuDemo',
    component: pizhuDemo
  },
  {
	path: '/NSCEearth',
	component: NSCEearth
  },
  {
    path: '/vant',
    component: Vant,
    children: [{
        path: 'pullRefresh',
        component: PullRefresh
      },
      {
        path: 'swipe',
        component: Swipe
      },
      {
        path: 'pick',
        component: Pick
      },
      {
        path: 'picker',
        component: Picker
      },
      {
        path: 'bstScroller',
        component: BstScroller
      }
    ]
  },
  {
    path: '/echarts',
    component: Echarts,
    children: [{
        path: 'fights',
        component: Flights
      },
      {
        path: 'lineDraggable',
        component: LineDraggable
      },
      {
        path: 'globeAtmosphere',
        component: GlobeAtmosphere
      },
      {
        path: 'woodCity',
        component: WoodCity
      },
      {
        path: 'trajectory',
        component: Trajectory
      },
      {
        path: 'smoothLine',
        component: SmoothLineChart
      },
      {
        path: 'basicBar',
        component: BasicBar
      },
      {
        path: 'ellipse',
        component: Ellipse
      }
    ]
  },
  {
    path: '/liucheng',
    component: Liucheng,
    children: [
      {
        path: 'vueSuperDefault',
        component: VueSuperDefault
      },
      {
        path: 'vueSuperAdvanced',
        component: VueSuperAdvanced
      },
      {
        path: 'vueTaskNodeDemo',
        component: VueTaskNodeDemo
      }
    ]
  },
  {
    path: '/vchart',
    component: vchartDemo,
    children: [
      {
        path: 'vlineDemo',
        component: vlineDemo
      }
    ]
  }
]

// 3. 创建 router 实例，然后传 `routes` 配置
// 你还可以传别的配置参数, 不过先这么简单着吧。
export default new Router({
  routes // (缩写) 相当于 routes: routes
})
